# Contributor:  Jeff Bilyk <jbilyk@gmail.com>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-net-snpp
_pkgreal=Net-SNPP
pkgver=1.17
pkgrel=7
pkgdesc="Perl Simple Network Pager Protocol Client"
url="https://metacpan.org/dist/Net-SNPP"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
options="!check" # fixme: failing tests
depends="perl"
source="https://cpan.metacpan.org/authors/id/T/TO/TOBEYA/Net-SNPP-$pkgver.tar.gz"

builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	# creates file collision among perl modules
	find "$pkgdir" -name perllocal.pod -delete

}

sha512sums="
aa1e47736226cc528513f5339579aa20f1aabbc5c0ddee2e4ca24beb0f797f50805fcf547fc6b8d0564be9331256706894d2619ee5a32c574a21d3738d86dcda  Net-SNPP-1.17.tar.gz
"
